package com.gsoe.problem.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gsoe.base.model.MqMessage;
import com.gsoe.problem.dto.SaveJudgeTestDTO;
import com.gsoe.problem.dto.SubmitDTO;
import com.gsoe.problem.dto.TestDTO;
import com.gsoe.problem.po.CheckAnswer;
import com.gsoe.problem.po.Test;
import com.gsoe.problem.vo.SubmitVO;
import com.gsoe.problem.vo.TestVO;

import java.util.List;


/**
 * <p>
 * 测验表 服务类
 * </p>
 *
 * @author xiaoma
 * @since 2024-10-27
 */
public interface TestService extends IService<Test> {

    Long createTest(TestDTO testDTO);

    List<TestVO> getTextList(String textName,Long textId,Integer status,Long userId);

    Long getTextRemainingTime(Long textId);

    SubmitVO submit(SubmitDTO dto);

    void reSubmit(Long textId);

    public SaveJudgeTestDTO getScoreWithCheckAnswer(CheckAnswer checkAnswer);
}
